package cn.gson.zuche.common;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class StringhidTag extends SimpleTagSupport{
	private String name ;
	@Override
	public void doTag() throws JspException, IOException {
		JspWriter jw = getJspContext().getOut();
		jw.write(xiugai(name));
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String xiugai(String bb){
		bb=bb.substring(0,1);
		bb+="**";
		return bb;
	}
}
